-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More shelleyBasedEraConstraint
constraints
#149
More shelleyBasedEraConstraint
constraints
#149
Conversation
e1af137
to
3d1a360
Compare
shelleyBasedEraConstraint
instancesshelleyBasedEraConstraint
constraints
3d1a360
to
f9d5995
Compare
{-# LANGUAGE StandaloneDeriving #-} | ||
{-# LANGUAGE TypeFamilies #-} | ||
{-# LANGUAGE UndecidableInstances #-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid this extension? Why it's needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is why we need it:
internal/Cardano/Api/Orphans.hs:97:10: error:
• Illegal nested constraint ‘ToJSON (HeaderHash blk)’
(Use UndecidableInstances to permit this)
• In the instance declaration for ‘ToJSON (Tip blk)’
|
97 | instance ToJSON (HeaderHash blk) => ToJSON (Tip blk) where
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Note, the offending instance already exists in cardano-cli
. This PR merely moves it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your link returns 404 error for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f9d5995
to
e667af3
Compare
Changelog
Context
Checklist
.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7
Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.